#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>

int main(void)
{
    char temp[100] = "Hello world!";
    char * str = (char *)malloc(sizeof(char)*100);
    strcpy(str, temp);
    printf("%s size is %lld\n", str, sizeof(str));
    int val = 100;
    int * pointer = &val;
    printf("%d\n", *pointer);// pointer[0]等效于*pointer
    printf("%d\n", pointer[0]);
    free((void *)str);
    return false;
}
